<template>
	<image class="back-button-container" :style="`width:${size}upx;height:${size}upx`" src="@/static/images/icon/arrow-left.png"
		mode="aspectFit" @tap="toPage"></image>
</template>

<script>
	export default {
		name: "BackButton",
		props: {
			size: {
				type: Number,
				default: 78,
			},
			url: {
				type: String,
				default: "/pages/index",
			}
		},
		methods: {
			toPage() {
				this.$emit("nav")
				this.$tab.navigateTo(this.url)
			}
		}
	}
</script>

<style lang="scss">
</style>